package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 商品分类实体类
 *
 * @author suguangjun
 */
@Data
@ApiModel(value = "GoodsCategoryDTO对象", description = "商品分类DTO")
public class GoodsCategoryDTO implements Serializable {

    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
  	private Long id;

    @ApiModelProperty(value = "上级id")
    private Long parentId;

	@NotBlank
    @ApiModelProperty(value = "名称")
    private String name;

	@ApiModelProperty(value = "图标")
	private String icon;

    @ApiModelProperty(value = "简介")
    private String brief;

	@ApiModelProperty(value = "排序值")
	private Integer sort;

}
